﻿
CREATE PROCEDURE [dbo].[exbug_StergePACsiAB]
	-- Add the parameters for the stored procedure here
	@IDPAC int, 
	@IDAB int
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for procedure here
	DELETE FROM PropunereAngajareCheltuialaDetaliu WHERE IDPAC=@IDPAC
	DELETE FROM PropunereAngajareCheltuiala WHERE IDPAC=@IDPAC
	
	DELETE FROM AngajamentBugetarDetaliu WHERE IDAB=@IDAB
	DELETE FROM AngajamentBugetar WHERE IDAB=@IDAB
END